Don't set MAKEFLAGS for build scripts
authorAlex Crichton <alex@alexcrichton.com>
Wed, 12 Jul 2017 21:15:56 +0000 (14:15 -0700)
committerAlex Crichton <alex@alexcrichton.com>
Wed, 12 Jul 2017 22:49:20 +0000 (15:49 -0700)
Closes #4156
Closes rust-lang/rust#42635

Cargo.lock
Cargo.toml
tests/cargotest/lib.rs
tests/jobserver.rs

index ebc8fa8e85e57cc736a63e1f0dc3ea2949944402..8a7132aa4b788b602847e14cc3f5030705ad2cd0 100644 (file)
@@ -18,7 +18,7 @@ dependencies = [
  "git2-curl 0.7.0 (registry+https://github.com/rust-lang/crates.io-index)",
  "glob 0.2.11 (registry+https://github.com/rust-lang/crates.io-index)",
  "hamcrest 0.1.1 (registry+https://github.com/rust-lang/crates.io-index)",
- "jobserver 0.1.4 (registry+https://github.com/rust-lang/crates.io-index)",
+ "jobserver 0.1.6 (registry+https://github.com/rust-lang/crates.io-index)",
  "kernel32-sys 0.2.2 (registry+https://github.com/rust-lang/crates.io-index)",
  "libc 0.2.23 (registry+https://github.com/rust-lang/crates.io-index)",
  "libgit2-sys 0.6.12 (registry+https://github.com/rust-lang/crates.io-index)",
@@ -323,13 +323,11 @@ source = "registry+https://github.com/rust-lang/crates.io-index"
 
 [[package]]
 name = "jobserver"
-version = "0.1.4"
+version = "0.1.6"
 source = "registry+https://github.com/rust-lang/crates.io-index"
 dependencies = [
- "kernel32-sys 0.2.2 (registry+https://github.com/rust-lang/crates.io-index)",
  "libc 0.2.23 (registry+https://github.com/rust-lang/crates.io-index)",
  "rand 0.3.15 (registry+https://github.com/rust-lang/crates.io-index)",
- "winapi 0.2.8 (registry+https://github.com/rust-lang/crates.io-index)",
 ]
 
 [[package]]
@@ -893,7 +891,7 @@ dependencies = [
 "checksum hamcrest 0.1.1 (registry+https://github.com/rust-lang/crates.io-index)" = "bf088f042a467089e9baa4972f57f9247e42a0cc549ba264c7a04fbb8ecb89d4"
 "checksum idna 0.1.2 (registry+https://github.com/rust-lang/crates.io-index)" = "2233d4940b1f19f0418c158509cd7396b8d70a5db5705ce410914dc8fa603b37"
 "checksum itoa 0.3.1 (registry+https://github.com/rust-lang/crates.io-index)" = "eb2f404fbc66fd9aac13e998248505e7ecb2ad8e44ab6388684c5fb11c6c251c"
-"checksum jobserver 0.1.4 (registry+https://github.com/rust-lang/crates.io-index)" = "c43fc6e4066b2adf0539c854daa1d926d7f23e6926e019850d34b8ae46391b2e"
+"checksum jobserver 0.1.6 (registry+https://github.com/rust-lang/crates.io-index)" = "443ae8bc0af6c106e6e8b77e04684faecc1a5ce94e058f4c2b0a037b0ea1b133"
 "checksum kernel32-sys 0.2.2 (registry+https://github.com/rust-lang/crates.io-index)" = "7507624b29483431c0ba2d82aece8ca6cdba9382bff4ddd0f7490560c056098d"
 "checksum lazy_static 0.2.8 (registry+https://github.com/rust-lang/crates.io-index)" = "3b37545ab726dd833ec6420aaba8231c5b320814b9029ad585555d2a03e94fbf"
 "checksum libc 0.2.23 (registry+https://github.com/rust-lang/crates.io-index)" = "e7eb6b826bfc1fdea7935d46556250d1799b7fe2d9f7951071f4291710665e3e"
index b4808e1f516dcf26317b1cd6ed170a82fbd3e99b..17d065fd61a7b007fe9a3abbef583272aeaa6a65 100644 (file)
@@ -29,7 +29,7 @@ fs2 = "0.4"
 git2 = "0.6"
 git2-curl = "0.7"
 glob = "0.2"
-jobserver = "0.1.4"
+jobserver = "0.1.6"
 libc = "0.2"
 libgit2-sys = "0.6"
 log = "0.3"
index 33e58c0e2e5262528f31deb9a8da6a4d639c8608..3db4a4422c200e37902ed253d49631d493e49ca3 100644 (file)
@@ -62,6 +62,7 @@ fn _process(t: &OsStr) -> cargo::util::ProcessBuilder {
      .env_remove("EMAIL")
      .env_remove("MFLAGS")
      .env_remove("MAKEFLAGS")
+     .env_remove("CARGO_MAKEFLAGS")
      .env_remove("GIT_AUTHOR_NAME")
      .env_remove("GIT_AUTHOR_EMAIL")
      .env_remove("GIT_COMMITTER_NAME")
index 7d055de1726d326ea1eb02677c2b30f990fe2630..41db11e7b8d3d8232afba955e359f4a9c2af45f5 100644 (file)
@@ -23,7 +23,7 @@ fn jobserver_exists() {
             use std::env;
 
             fn main() {
-                let var = env::var("MAKEFLAGS").unwrap();
+                let var = env::var("CARGO_MAKEFLAGS").unwrap();
                 let arg = var.split(' ')
                              .find(|p| p.starts_with("--jobserver"))
                              .unwrap();